<?php
html::printPath(array('exerciseGroup.form-title' => 'admin/exerciseGroup/all', 'application.page-title-display' => ''));
$msg->printMessages();

echo html::entityInfoIcon('exercise_group', $exerciseGroup, 'code');
?>

<ul class="commandList">
    <li class="deleteLi"><?php echo html::anchor('admin/exerciseGroup/delete?code=' . $exerciseGroup['code'], text::get('exerciseGroup.deleteThis'), array('onclick'=>'return confirmDeletion()')) ?></li>
</ul>

<?php
$fb = new FormBuilder('exerciseGroup', $exerciseGroup);
$fb->displayOnly();
$fb->text('code')->identifyingValue();
$fb->text('name');
$fb->text('description');
$fb->write();

echo '<h3>' . text::getEscaped('application.localizedValues') . '</h3>';

echo '<ul class="commandList">';
echo '<li class="addLi">' . html::anchor('admin/exerciseGroup/editLocalizedValues?exercise_group_code=' . $exerciseGroup['code'], text::get('application.createNewL10n')) . '</li>';
echo '</ul>';

$elb = new EntityListBuilder($this, $exerciseGroupL10nList);
$elb->setUuid($this->DISPLAY_LOCALIZED_VALUE_LIST_UUID);
$elb->text('language_name')->linkWithParams('/admin/exerciseGroup/editLocalizedValues?exercise_group_code=%s&language_code=%s', array('exercise_group_code', 'language_code'));
$elb->text('name');
$elb->text('description');
$elb->write();